<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 14-6-9
  Time: 下午11:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%

    //    http://114.215.102.122:7777/mbp/
//    http://114.215.102.122:8888/nmos/
//    http://114.215.102.122:9999/abp/
//    http://114.215.102.122:5555/mobi/

    String serverName = request.getServerName();
    if (serverName.equalsIgnoreCase("114.215.102.122")) {
        response.sendRedirect("http://114.215.102.122:8888/nmos/");
    } else if (serverName.equalsIgnoreCase("m.rewards.qingyunit.com")) {
        response.sendRedirect("http://114.215.102.122:7777/mbp/");
    } else if (serverName.equalsIgnoreCase("rewards.qingyunit.com")) {
        response.sendRedirect("http://114.215.102.122:9999/abp/");
    } else if (serverName.equalsIgnoreCase("qr.qingyunit.com")) {
        response.sendRedirect("http://114.215.102.122:5555/mobi/");
    }
    System.out.println(serverName);
%>
<html>
<head>
    <title></title>
</head>
<body>
</body>
</html>
